package algorithm_demo.demo04.graph;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author Api
 * @date 2023/2/18 17:44
 */
public class Node {
    public int value;
    public int in;   // 入度
    public int out;  // 出度
    public List<Node> nexts;  // 邻接节点
    public List<Edge> edges;  // 邻接边

    public Node(int value) {
        this.value = value;
        this.in = 0;
        this.out = 0;
        this.nexts = new ArrayList<>();
        this.edges = new ArrayList<>();
    }
}
